package com.qdxwx.data.mapper.approal;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.approal.Approal;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface ApproalMapper {

    int insertApproal(Approal approal);

    Approal selectById(int id);

    List<Approal> selectList(@Param("e") Approal approal, @Param("page") PageRequest page);

    int selectCount(@Param("e") Approal approal);

    int deleteByInfoId(int infoId, int typeId);
}
